package com.zjitc.dao;

import com.zjitc.model.CartItem;
import com.zjitc.model.Product;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/5/10 16:06
 * @description:
 */
public interface CartDao {

  List<CartItem> findByUid(int uid);

  int addCart(CartItem cartItem);

  int update(CartItem _cartItem);

  CartItem findByPidAndUid(@Param("pid") int pid,@Param("uid") int uid);

  Product findByPid(Integer pid);

  void removeCart(String cartid);

  void clearCart();


}
